package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.wingroom.chakra.data.UserWingRoomChakraDetail;

@FieldTypeAnnotation(tableName = "t_l_ck_wingroom_chakra_draw", desc = "命盘抽奖日志", autoSave = true, uploadCk = true)
public class LogWingRoomChakraDraw extends ServerBaseLog {

    /**
     * 玩家ID
     */
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    /**
     * 命盘序号
     */
    @FieldTypeAnnotation(desc = "命盘序号")
    private int occupation;
    /**
     * 命盘等级
     */
    @FieldTypeAnnotation(desc = "命盘等级")
    private int level;
    /**
     * 类型1命格2四象
     */
    @FieldTypeAnnotation(desc = "类型1命格2四象")
    private int type;
    /**
     * 位置
     */
    @FieldTypeAnnotation(desc = "位置")
    private int position;
    /**
     * 操作类型1装备2替换3舍弃
     */
    @FieldTypeAnnotation(desc = "操作类型1装备2替换3舍弃")
    private int handleType;
    /**
     * 物品信息
     */
    @FieldTypeAnnotation(desc = "物品信息", saveJson = true)
    private UserWingRoomChakraDetail detail;
    /**
     * 原位置物品信息
     */
    @FieldTypeAnnotation(desc = "原位置物品信息", saveJson = true)
    private UserWingRoomChakraDetail oldDetail;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getOccupation() {
        return occupation;
    }

    public void setOccupation(int occupation) {
        this.occupation = occupation;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getHandleType() {
        return handleType;
    }

    public void setHandleType(int handleType) {
        this.handleType = handleType;
    }

    public UserWingRoomChakraDetail getDetail() {
        return detail;
    }

    public void setDetail(UserWingRoomChakraDetail detail) {
        this.detail = detail;
    }

    public UserWingRoomChakraDetail getOldDetail() {
        return oldDetail;
    }

    public void setOldDetail(UserWingRoomChakraDetail oldDetail) {
        this.oldDetail = oldDetail;
    }

}
